// DCSettingDlg.cpp : implementation file
//

#include "stdafx.h"
#include "DeviceCloud.h"
#include "DCSettingDlg.h"


// CDCSettingDlg dialog

CDCSettingDlg::CDCSettingDlg(CWnd* pParent /*=NULL*/)
	: CDialogChildBase(CDCSettingDlg::IDD, IDB_DLGC_BG, pParent)
{

}

CDCSettingDlg::~CDCSettingDlg()
{
}

void CDCSettingDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialogChildBase::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_STC_SSTATUS, m_stcStatus);
	DDX_Control(pDX, IDC_STC_APASS, m_stcAPass);
	DDX_Control(pDX, IDC_STC_CPASS, m_stcCPass);
	DDX_Control(pDX, IDC_STC_RQPASS, m_stcRQPass);
	DDX_Control(pDX, IDC_EDT_APASS, m_edtAPass);
	DDX_Control(pDX, IDC_EDT_CPASS, m_edtCPass);
	DDX_Control(pDX, IDC_BTN_SAVEPASS, m_btnSavepass);
}

bool CDCSettingDlg::OnInitChildControls()
{
	m_stcStatus.SetFontFamily(_T("Arial"));      m_stcStatus.SetFontSize(11);
	m_stcStatus.SetFontStyle(1);                 m_stcStatus.SetFontColor(0, 0, 0);

	m_stcAPass.SetFontFamily(_T("Arial"));    m_stcAPass.SetFontSize(8);
	m_stcAPass.SetFontStyle(1);               m_stcAPass.SetFontColor(0, 0, 0);

	m_stcCPass.SetFontFamily(_T("Arial"));    m_stcCPass.SetFontSize(8);
	m_stcCPass.SetFontStyle(1);               m_stcCPass.SetFontColor(0, 0, 0);

	m_stcRQPass.SetFontFamily(_T("Arial"));    m_stcRQPass.SetFontSize(8);
	m_stcRQPass.SetFontStyle(1);               m_stcRQPass.SetFontColor(0, 0, 0);

	RECT rect;	
	GetClientRect(&rect);
	ClientToScreen(&rect);

	//m_stcStatus.SetCtrlBackground(IDB_DLGC_BG, rect.left + 2, rect.top, TRUE);
	//m_stcAPass.SetCtrlBackground(IDB_DLGC_BG, rect.left + 2, rect.top, TRUE);
	//m_stcCPass.SetCtrlBackground(IDB_DLGC_BG, rect.left + 2, rect.top, TRUE);
	//m_stcRQPass.SetCtrlBackground(IDB_DLGC_BG, rect.left + 2, rect.top, TRUE);

	m_btnSavepass.SetBntPicsID(IDB_BTNN_HO, IDB_BTNN_DE, IDB_BTNN_PR, IDB_BTNN_DI);
	return true;
}


BEGIN_MESSAGE_MAP(CDCSettingDlg, CDialogChildBase)
	ON_BN_CLICKED(IDC_BTN_SAVEPASS, &CDCSettingDlg::OnBnClickedBtnSavepass)
END_MESSAGE_MAP()

// CDCSettingDlg message handlers
BOOL CDCSettingDlg::OnInitDialog()
{
	CDialogChildBase::OnInitDialog();
	return TRUE;  // return TRUE  unless you set the focus to a control
}

void CDCSettingDlg::OnBnClickedBtnSavepass()
{
	// TODO: Add your control notification handler code here
}
